package jp.co.sn.mml.pojo.tmhkcmt;


public class TmhkcmtId implements java.io.Serializable { 

	//報告コメントコード
	private String hkCmtCd;
	//検査群
	private String ksKbn;

	/** default constructor */
	public TmhkcmtId(){

	}

	/** full constructor */
	public TmhkcmtId(String hkCmtCd,String ksKbn){
		this.hkCmtCd = hkCmtCd;
		this.ksKbn = ksKbn;
	}

	//Property accessors
	public String getHkCmtCd(){
		return this.hkCmtCd;
	}

	public void setHkCmtCd(String hkCmtCd){
		this.hkCmtCd=hkCmtCd;
	}

	public String getKsKbn(){
		return this.ksKbn;
	}

	public void setKsKbn(String ksKbn){
		this.ksKbn=ksKbn;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TmhkcmtId))
			return false;

		TmhkcmtId castOther = (TmhkcmtId) other;

		return ((this.getHkCmtCd() ==  castOther.getHkCmtCd())
				||(this.getHkCmtCd()!=null && castOther.getHkCmtCd() !=null 
					&& castOther.getHkCmtCd() !=null 
					&& this.getHkCmtCd().equals(castOther.getHkCmtCd())))
			&& ((this.getKsKbn() ==  castOther.getKsKbn())
				||(this.getKsKbn()!=null && castOther.getKsKbn() !=null 
					&& castOther.getKsKbn() !=null 
					&& this.getKsKbn().equals(castOther.getKsKbn())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getHkCmtCd() == null ? 0 : this.getHkCmtCd().hashCode());
		result = 37 * result
				+ (getKsKbn() == null ? 0 : this.getKsKbn().hashCode());
		return result;
	}

}